import requests
from config import RunConfig

def 物探生产进度周报表保存(para):
    response = requests.post(
        url=RunConfig.url + "/phy/week/workload/project/info/save",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 周工作报表(para):
    response = requests.post(
        url=RunConfig.url + "/phy/week/workload/project?page=1&perPage=10",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探生产进度周报表(para):
    response = requests.get(
        url=RunConfig.url + "phy/week/workload/project/info/export?id=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探生产进度周报表(para):
    response = requests.get(
        url=RunConfig.url + "phy/week/workload/schedule/export?endDate=&startDate=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探生产进度周报表(para):
    response = requests.get(
        url=RunConfig.url + "phy/week/workload/project/info?id=&informantId=&projectId=&type=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探生产进度周报表(para):
    response = requests.get(
        url=RunConfig.url + "phy/week/workload/project/one",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 物探生产进度周报表新增(para):
    response = requests.post(
        url=RunConfig.url + "/phy/week/workload/schedule/save",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 物探生产进度周报表(para):
    response = requests.get(
        url=RunConfig.url + "phy/week/workload/schedule?endDate=&startDate=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
